package com.lyl.servicelive.cloudclient;

import com.lyl.commonutils.R;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-edu",fallback = EduClientHystrix.class)
public interface EduClient {


    @GetMapping("serviceedu/teacher/{id}")
    public R getById(@PathVariable("id") Long id);
}
